package com.zl.controller;

import com.zl.model.Cat;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

/**
 * Bean作用域的demo
 */

@Controller
public class ScopeController2 {
    @Resource
    private Cat cat;

    public void doScope(){
        System.out.println("doScopeController2");

        System.out.println(cat);
    }
}
